package com.assignwork.mapper;

import com.assignwork.dto.CorpCargoSearchDTO;
import com.assignwork.entity.CorpCargo;
import com.assignwork.vo.CorpCargoListVO;
import com.assignwork.vo.CorpCargoPageVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName CorpCargoMapper
 * @Description 局调货名Mapper
 * @Author dujianyu
 * @Date 2023/8/22 15:23
 */
public interface CorpCargoMapper extends BaseMapper<CorpCargo> {
    /**
     * 分页
     * @param dto 搜索条件
     * @param page 分页
     * @return List<CorpCargoPageVO>
     * @author dujianyu
     * @since 2023/8/23 8:40
     */
    List<CorpCargoPageVO> selectCorpCargoPage(@Param("dto") CorpCargoSearchDTO dto, IPage page);

    /**
     * 列表
     * @param dto 搜索条件
     * @return List<CorpCargoListVO>
     * @author dujianyu
     * @since 2023/8/23 8:44
     */
    List<CorpCargoListVO> selectCorpCargoList(@Param("dto") CorpCargoSearchDTO dto);
}
